.todo-container {
  background-color: transparent;
}

.todo-column {
  background-color: #1a1a1a;
  border: 1px solid #2d2d2d;
  transition: all 0.2s ease;
  min-height: 200px;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.todo-column:hover {
  border-color: #3d3d3d;
}

.todo-column.is-dragging-over {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  transition: background 0.2s ease;
}

.todo-card {
  background-color: #2d2d2d;
  border: 1px solid #374151;
  transition: all 0.2s ease;
  cursor: move;
  user-select: none;
}

.todo-card:hover {
  background-color: #374151;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.todo-card.is-dragging {
  border-color: #3b82f6;
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
  transform: scale(1.02);
  opacity: 0.8;
}

.todo-title {
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.4;
}

.todo-due-date {
  color: #9ca3af;
  font-size: 12px;
  margin-top: 4px;
}

.todo-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* 适配Antd组件 */
.ant-modal-title {
  color: #e5e7eb !important;
}

.ant-modal-close {
  color: #9ca3af !important;
}

.ant-modal-close:hover {
  color: #e5e7eb !important;
}

.custom-input {
  background-color: #1f2937 !important;
  border-color: #374151 !important;
  color: #e5e7eb !important;
}

.custom-input:hover,
.custom-input:focus {
  border-color: #6366F1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
}

.custom-select .ant-select-selector {
  background-color: #1f2937 !important;
  border-color: #374151 !important;
  color: #e5e7eb !important;
}

.custom-select .ant-select-arrow {
  color: #9ca3af !important;
}

/* 添加自定义滚动条样式 */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #1e293b;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* 为 Firefox 添加滚动条样式 */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #4B5563 #374151;
}

/* 添加动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease-in-out;
}

/* 加载效果 */
.loading-spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  border-top-color: #3b82f6;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 自定义背景色，添加中间灰度值 */
.bg-gray-750 {
  background-color: #222933;
}

/* 增强拆分结果视图样式 */
.task-split-result-view {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  animation: slideDown 0.3s ease-in-out;
  border-radius: 8px;
  overflow: hidden;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task-split-result-view .ant-typography {
  transition: color 0.3s ease;
}

.task-split-result-view .ant-collapse-item {
  margin-bottom: 8px;
  border-radius: 6px;
  overflow: hidden;
}

.task-split-result-view .ant-card {
  transition: all 0.3s ease;
}

.task-split-result-view .ant-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.task-split-result-view .ant-divider {
  margin: 16px 0;
}

.task-split-result-view .ant-tag {
  transition: all 0.3s ease;
}

.task-split-result-view .ant-tag:hover {
  transform: scale(1.05);
}

/* 解决面板之间的边距问题 */
.todo-board {
  gap: 1rem;
}

/* 当某个面板最大化时，添加轻微的缩放效果 */
.todo-column.flex.w-full {
  animation: scaleUp 0.3s ease-in-out;
}

@keyframes scaleUp {
  from {
    transform: scale(0.98);
  }
  to {
    transform: scale(1);
  }
}

/* 当面板恢复到正常大小时添加动画 */
.todo-column.flex-1 {
  animation: fadeIn 0.3s ease-in-out;
}

.todo-column.maximized {
  flex: 1 0 100%;
}

.todo-column .maximize-button {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.todo-column:hover .maximize-button {
  opacity: 1;
}

.todo-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.todo-column-header h3 {
  margin: 0;
  font-weight: 500;
}